package demo05;

public class exercise49 {
	public static void main(String[] args) {
		int count = 0;
		String str = "Hello World!How are you!";
		for(int i =0;i<str.length();i++){
			if(str.charAt(i)==' '){
				count++;
			}
		}
		System.out.println(count);
	}
}
